package com.zalyyh.advertisement.interfac

import android.util.Log
import android.view.View
import com.bytedance.sdk.openadsdk.TTAdNative
import com.bytedance.sdk.openadsdk.TTNativeExpressAd
import com.zalyyh.advertisement.enty.AdaveData
import com.zalyyh.advertisement.manage.Manage

abstract class AdverCallback : AdaverCallback{
    override fun onError(var1: Int, var2: String) {
        Log.e("zalyyh","code:  $var1  message:  $var2")
    }

    override fun onNativeExpressAdLoad(var1: List<TTNativeExpressAd>) {

    }

    override fun onRenderSuccess(var1: View, var2: Float, var3: Float) {

    }

    override fun show(data: AdaveData) {
        Manage.adave.put(data.codeId,data.view!!)
    }

    //视频广告展示回调
     override fun onAdShow() {}

    //广告的下载bar点击回调
     override fun onAdVideoBarClick(){}

    //视频广告关闭回调
     override fun onAdClose(){}

    //视频广告播放完毕回调
     override fun onVideoComplete(){}

    //视频广告播完验证奖励有效性回调，参数分别为是否有效，奖励数量，奖励名称
     override fun onRewardVerify(var1: Boolean, var2: Int, var3: String){}

    override fun onVideoError() {

    }

    override fun onSkippedVideo() {

    }

}